package edu.drexel.cs.eVoter;

import java.io.Serializable;

public class Vote implements Serializable {
	private static final long serialVersionUID = -7205088061231791779L;
	private Voter voter = null;
	private Candidate candidate = null;
	
	public Vote(Voter voter, Candidate candidate)
	{
		this.voter = voter;
		this.candidate = candidate;
	}

	public Voter getVoter() {
		return voter;
	}

	public void setVoter(Voter voter) {
		this.voter = voter;
	}

	public Candidate getCandidate() {
		return candidate;
	}

	public void setCandidate(Candidate candidate) {
		this.candidate = candidate;
	}

	@Override
	public String toString() {
		return "Vote [voter=" + voter + ", candidate=" + candidate + "]";
	}
}
